﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace CSF.BusinessCore.Service
{
    [ServiceContract]
    public interface IDataIdKeyService<TEntity>
    {
        [OperationContract]
        TEntity GetOneById(int id);

        [OperationContract]
        bool UpdateById(TEntity t, int id);

        [OperationContract]
        bool DeleteOneById(int id);

        [OperationContract]
        int DeleteById(IEnumerable<int> ids);

        [OperationContract]
        int Insert(TEntity entity);

      
    }
}
